package service;



import entity.Roleurl;
import entity.User;
import entity.UserRole;
import utils.error.BusinessException;

import java.util.List;

public interface Userservice {
    List<User> findall();

    User findeid(Integer id);

    Integer insert(User user);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record) throws BusinessException;

    int updateByPrimaryKey(User record) throws BusinessException;

    User login(String username,String password);


    List<UserRole> listroleid();

    List<Roleurl> urllist();

    Roleurl urlpid(String url);
}
